<%@page import="server.ForumHandlerInt"%>
<%@page import="java.rmi.Naming"%>

<%
   String name = request.getParameter( "username" );
   session.setAttribute( "theName", name );
   String password = request.getParameter( "password" );
   session.setAttribute( "thePassword", password );
   
   String result = request.getParameter("doThis");
   out.println(result);
   
   String serverDomain = "localhost";
   ForumHandlerInt forum = null;

   try
   {
	 forum =  (ForumHandlerInt)Naming.lookup("rmi://"+serverDomain+"/ForumService");
   	forum.login(name,password);
   }
   catch (Exception e){out.println(e.getMessage());}
   
   
   
   
%>
<HTML>
<BODY>
<A HREF="NextPage.jsp">Continue</A>
</BODY>
</HTML>